/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-10-04
 * Time:9:33
 */
public class Test {

    public static boolean isCharacter(char a){
        if(a>'a'&&a<'z'){
            return true;
        }
        return false;
    }

    public static boolean isPanlindrome(String s){
        s.toLowerCase();
        int l=0;
        int r=s.length()-1;
        while(l<r){
            if(isCharacter(s.charAt(l))){
                if(isCharacter(s.charAt(r))){
                    if(l==r){
                        l++;
                        r--;
                    }else {
                        return false;
                    }
                }else {
                    r--;
                }
            }else {
                l++;
            }
        }
        return true;
    }

    public static void main(String[] args) {
        String a="dsadsadsadsa";
        System.out.println(isPanlindrome(a));
        //System.out.println(isCharacter(a));
    }
}
